package com.lagou.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController // 该注解为组合注解，等同于Spring中@Controller+@ResponseBody注解
public class HelloController {

    @RequestMapping("/hello")
    public String demo(@RequestParam("name") String name){
        return "hello springBoot " + name;
    }

}
